import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import './handler.dart';

class Routes {
  static String root = '/';
  static String detailsPage = '/detail';

  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
        print('ERROR ===> ROUTE WAS NOT FOUNDED!!!');
        return Center(child: Text('No This Page!'),);
      }
    );

    router.define(detailsPage, handler: detailsHandler);
  }
}
